package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.mapper.ExamItemsMapperG;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExamItemsMapper;
import com.ruoyi.system.domain.ExamItemsG;
import com.ruoyi.system.service.IExamItemsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 试题Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-05
 */
@Service
public class ExamItemsServiceImpl implements IExamItemsService 
{
    @Autowired
    private ExamItemsMapperG examItemsMapperG;

    /**
     * 查询试题
     * 
     * @param eid 试题主键
     * @return 试题
     */
    @Override
    public ExamItemsG selectExamItemsByEid(Long eid)
    {
        return examItemsMapperG.selectExamItemsByEid(eid);
    }

    /**
     * 查询试题列表
     * 
     * @param examItems 试题
     * @return 试题
     */
    @Override
    public List<ExamItemsG> selectExamItemsList(ExamItemsG examItems)
    {
        return examItemsMapperG.selectExamItemsList(examItems);
    }

    /**
     * 新增试题
     * 
     * @param examItems 试题
     * @return 结果
     */
    @Override
    public int insertExamItems(ExamItemsG examItems)
    {
        return examItemsMapperG.insertExamItems(examItems);
    }

    /**
     * 修改试题
     * 
     * @param examItems 试题
     * @return 结果
     */
    @Override
    public int updateExamItems(ExamItemsG examItems)
    {
        return examItemsMapperG.updateExamItems(examItems);
    }

    /**
     * 批量删除试题
     * 
     * @param eids 需要删除的试题主键
     * @return 结果
     */
    @Override
    public int deleteExamItemsByEids(String eids)
    {
        return examItemsMapperG.deleteExamItemsByEids(Convert.toStrArray(eids));
    }

    /**
     * 删除试题信息
     * 
     * @param eid 试题主键
     * @return 结果
     */
    @Override
    public int deleteExamItemsByEid(Long eid)
    {
        return examItemsMapperG.deleteExamItemsByEid(eid);
    }
}
